'use strict';

/**
 * @ngdoc function
 * @name passwordAgentHtmlApp.controller:navCtrl
 * @description
 * # navCtrl
 * Controller of the p2pWeb1020App
 */
var myController = angular.module('passwordAgentApp');
myController.controller('navCtrl', ['$rootScope', '$scope', function ($rootScope, $scope) {
  console.log('navCtrl');
//        $scope.me=$rootScope.user;
//       var currentUser = authService.user;
  var menus = [
    {menuId: 1, menuName: "Home", state: "site.index"},
    {menuId: 2, menuName: "Agent", state: "site.passwordAgent"},
    {menuId: 3, menuName: "About", state: "site.about"},
  ];

  $scope.menus = $rootScope.menus = menus;
  for (var i = 0; i < menus.length; i++) {
      console.log(menus[i]);

  }
  //console.log(currentUser);
  //if (currentUser) {
  //  $rootScope.isLogged = true;
  //  $scope.menus = $rootScope.menus = menus;
  //}


}]);
